package com.moyun.finance.repository;

import com.moyun.finance.entity.Customer;
import com.moyun.finance.entity.Projects;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ProjectsRepository extends JpaRepository<Projects,String>, JpaSpecificationExecutor<Projects> {
    List<Projects> findByCompanyId(String companyId);
    List<Projects> findByCompanyIdAndProjectNameLike(String companyId, String projectsName);
    List<Projects> findByCompanyIdAndAllTypeId(String companyId, String allTypeId);
}
